from django.db import models
from utils.BaseModel import BaseModel
# Create your models here.
class Nav(BaseModel):
    name = models.CharField(max_length=100,unique=True,verbose_name="导航名称")
    position = models.IntegerField(max_length=200,verbose_name="导航位置",default=0)
    ishttp = models.BooleanField(verbose_name="是否为http链接",default=False)
    url = models.CharField(max_length=200,verbose_name="导航链接",null=True,blank=True)
    class Meta:
        db_table = "fgnav"
        verbose_name = "导航"